<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>确认订单并付款 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
<script type="text/javascript">     
	function countDown(secs,surl){         
	 var jumpTo = document.getElementById('jumpTo');
	 	jumpTo.innerHTML=secs;  
		 if(--secs>0){     
			 setTimeout("countDown("+secs+",'"+surl+"')",500);     
		 }else{       
			 location.href=surl;     
			 -ma
		 }     
	 }     
  </script> 
 <style>.ok_msg {color: #FC6D73;font-size: 20px;}</style>
</head>
<body>
<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 

<div class="main_right">

<div class="common_title">会员充值</div>
<form method="post" name="E_FORM" action="buy_action.php" target="_blank">
<input type="hidden" name="pd_encode" value="<?php echo $pr_encode;?>">
<input type="hidden" name="pd_verify" value="<?php echo $pr_verify;?>">
<input type="hidden" name="aid" value="<?php echo $buyid;?>">
<input type="hidden" name="money" value="<?php echo $money;?>">
<div class="ddqr">
<h5>确认订单并付款</h5>
<p>
订单编号：<?php echo $buyid?><br/>
产品类型：<?php echo $ptype?><br/>
产品名称：<?php echo $pname?><br/>
产品价格：<?php echo $price;?>元
</p>
<p class="ok_msg">订单提交成功 <span id="jumpTo">2</span> 秒后将自动跳转至支付宝</p>
<script type="text/javascript">
countDown(2,'{dede:var.button/}');
</script>
</div>

</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>

<script>
	//订单确认
	var lis = document.querySelectorAll('.zffs_title li');
	var radios = document.querySelectorAll('input[name=zffs]');
	var zffs_cons = document.querySelectorAll('.zffs_con li');
	for(var i=0,len=lis.length;i<len;i++){
		lis[i].index = i;
		lis[i].onclick = liCLickHandler;
	}
	function liCLickHandler(e){
		for(var i=0,len=lis.length;i<len;i++){
			lis[i].className = '';
			radios[i].checked = false;
			zffs_cons[i].style.display = 'none';
		}
		this.className = 'cur';
		radios[this.index].checked = true;
		zffs_cons[this.index].style.display = 'block';
	}
	lis[0].onclick();
</script>
<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseenterHandler(e){
		if(!/_h$/.test(spans[this.index].clazz)){
			spans[this.index].className = spans[this.index].clazz + '_h';
		}
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>